//
//  VideoDescCell.m
//  diaoyuren
//
//  Created by Cheng on 16/1/20.
//  Copyright © 2016年 game. All rights reserved.
//

#import "VideoDescCell.h"
#import "SlideView.h"
#import "Masonry.h"
#import "NEWAticListModel.h"
//#import "DetailModel.h"
#import "NSString+ClearPPPP.h"
#import "NSString+HtmlCharact.h"
#import "Manager.h"

#define AddSubView(view) [self.contentView addSubview:view]
#define HightOffatherOfbnt 50
@interface VideoDescCell()<UIScrollViewDelegate>

@end

@implementation VideoDescCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
    }

    return self;
}

-(void)creatlabel:(CGFloat)height
{
    [self.desLab removeFromSuperview];
    self.desLab = [[UILabel alloc]initWithFrame:CGRectMake(15, 0, SCREEN_WIDTH-30,height)];
//    self.desLab.backgroundColor=[UIColor redColor];
    self.desLab.numberOfLines = 0;
    self.desLab.font = font(SCREEN_WIDTH*0.05);
    self.desLab.userInteractionEnabled=YES;
    
    self.desLab.userInteractionEnabled = YES;
    AddSubView(self.desLab);
    
   
    
    UITapGestureRecognizer *tap=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickLabel)];
    [self.desLab addGestureRecognizer:tap];
}
-(void)clickLabel{
    [self.delegate clickLabel:self.detaomodel];

}
-(void)setDetaomodel:(DetailModel *)detaomodel
{
    _detaomodel=detaomodel;

    self.desLab.text=[[detaomodel.body ClearPTo000] filterresult];

}
@end
